/*
 * Copyright (C) 2016 MediaTek Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
 */

/****************************************************************
 * Auto generated by DE, please DO NOT modify this file directly.
 ****************************************************************/

#ifndef __MTK_SPM_PMIC_WRAP_H__
#define __MTK_SPM_PMIC_WRAP_H__

enum pmic_wrap_phase_id {
	PMIC_WRAP_PHASE_ALLINONE,
	NR_PMIC_WRAP_PHASE,
};

/* IDX mapping */
enum {
	CMD_0,        /* 0 *//* PMIC_WRAP_PHASE_ALLINONE */
	CMD_1,        /* 1 */
	CMD_2,        /* 2 */
	CMD_3,        /* 3 */
	CMD_4,        /* 4 */
	CMD_5,        /* 5 */
	CMD_6,        /* 6 */
	CMD_7,        /* 7 */
	CMD_8,        /* 8 */
	CMD_9,        /* 9 */
	CMD_10,       /* A */
	CMD_11,       /* B */
	CMD_12,       /* C */
	CMD_13,       /* D */
	CMD_14,       /* E */
	CMD_15,       /* F */
	NR_IDX_ALL,
};

/* APIs */
extern void mt_spm_pmic_wrap_set_phase(enum pmic_wrap_phase_id phase);
extern void mt_spm_pmic_wrap_set_cmd(enum pmic_wrap_phase_id phase,
				     int idx,
				     unsigned int cmd_wdata);

#endif /* __MTK_SPM_PMIC_WRAP_H__ */
